<h1>Listing rest_models</h1>

<table>
  <tr>
    <th>Field a</th>
    <th>Field b</th>
  </tr>
  
<% for rest_model in @rest_models %>
  <tr>
    <td><%=h rest_model.field_a %></td>
    <td><%=h rest_model.field_b %></td>
    <td><%= link_to 'Show', rest_model_path(rest_model) %></td>
    <td><%= link_to 'Edit', edit_rest_model_path(rest_model) %></td>
    <td><%= link_to 'Destroy', rest_model_path(rest_model), :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New rest_model', new_rest_model_path %>